import path, { resolve } from 'node:path'
import fs, { writeFileSync, readFileSync } from 'node:fs'


import { parse } from '@vue/compiler-dom'

let dir = process.cwd()

let target = path.resolve(dir, './source/02/1.vue')
const content = readFileSync(target, 'utf-8')


// 已经拿到 vue的 AST结果
let ast = parse(content)

// fs.writeFileSync(path.resolve(dir, './src/02/vue-ast.js'), JSON.stringify(ast, null , 4))
